package com.xdtech.cc.service;

import java.util.List;

import com.xdtech.common.service.IBaseService;
import com.xdtech.cc.model.Account;
import com.xdtech.cc.vo.AccountItem;

/**
 * 
 * @author max.zheng
 * @create 2016-05-29 21:53:30
 * @since 1.0
 * @see
 */
public interface AccountService extends IBaseService<Account>{

	/**
	 * 保存更新信息
	 * @author max.zheng
	 * @create 2016-05-29 21:53:30
	 * @modified by
	 * @param item
	 * @return
	 */
	boolean saveOrUpdateAccount(AccountItem item);

	/**
	 * 加载记录信息
	 * @author max.zheng
	 * @create 2016-05-29 21:53:30
	 * @modified by
	 * @param newId
	 * @return
	 */
	AccountItem loadAccountItem(Long accountId);

	/**
	 * 根据id号删除记录信息
	 * @author max.zheng
	 * @create 2016-05-29 21:53:30
	 * @modified by
	 * @param id
	 * @return
	 */
	boolean deleteAccountInfo(long id);

	/**
	 * 
	 * @author max.zheng
	 * @create 2016-05-29 21:53:30
	 * @modified by
	 * @param accountIds
	 */
	boolean deleteAccountInfo(List<Long> accountIds);
	
	/**
	 * 加载vo列表条目
	 * @author max.zheng
	 * @create 2016-05-29 21:53:30
	 * @modified by
	 * @return
	 */
	List<AccountItem> loadItems();
}
